<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<LINK rel="stylesheet" type="text/css" href="<html:rewrite page="/styles/filesArchive.css"/>">
<html:form action="/Files/Upload" method="POST" enctype="multipart/form-data" styleId="upfile">
    
    <h1>Upload File</h1>
    
    <div style="width: 90%">
        Title: 
        <div class="errorMessage">
            <html:errors property="title"/>
        </div>
        <html:text property="title" style="width: 100%"/>
        Description:
        <div class="errorMessage">
            <html:errors property="description"/>
        </div>
        <html:textarea property="description" style="width: 100%"/>
        File:
        <div class="errorMessage">
            <html:errors property="file"/>
        </div>
        <html:file property="file" />
        <a class="button" href="javascript: document.getElementById('upfile').reset()">Reset</a>
        <a class="button" href="javascript: document.getElementById('upfile').submit()">Submit</a>
    </div>
</html:form>